package com.nf.action;

import entity.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestAction {

    @RequestMapping("/k1.action")
    public String jkfsd32(){
        return "k1";
    }

    @ResponseBody
    @RequestMapping("/kkkk")
    public Student jkljk(String name,Integer age){
        Student s = new Student();
        s.setName(name);
        s.setAge(age);
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return s;
    }

}
